Skip to content

copy_version_files.ps1 improve comparison#124341

Merged
pavelsavara merged 1 commit intodotnet:mainfrom
pavelsavara:fix_windows_version_c
Feb 12, 2026
Merged

copy_version_files.ps1 improve comparison#124341
pavelsavara merged 1 commit intodotnet:mainfrom
pavelsavara:fix_windows_version_c

Conversation

@pavelsavara
Copy link
Copy Markdown
Member

it was too sensitive to white space on windows - breaks incremental build on windows

@pavelsavara pavelsavara added this to the 11.0.0 milestone Feb 12, 2026
@pavelsavara pavelsavara self-assigned this Feb 12, 2026
Copilot AI review requested due to automatic review settings February 12, 2026 12:59
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 12, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves incremental build stability on Windows by changing how _version.c placeholder content is compared before overwriting the generated copy under artifacts/obj.

Changes:

  • Replace the -ne comparison with Compare-Object when deciding whether to overwrite artifacts/obj/_version.c.
  • Add an explanatory comment describing the overwrite condition.

@pavelsavara pavelsavara removed the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 12, 2026
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@pavelsavara pavelsavara merged commit a985eef into dotnet:main Feb 12, 2026
165 of 167 checks passed
@pavelsavara pavelsavara deleted the fix_windows_version_c branch February 12, 2026 21:28
iremyux pushed a commit to iremyux/dotnet-runtime that referenced this pull request Mar 2, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants